package cn.xshi.sys.init.spi;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.Ordered;

@Slf4j
public class SPIApplicationContextInitializer implements
        ApplicationContextInitializer<ConfigurableApplicationContext>, Ordered {
    public static final int DEFAULT_ORDER = 0;

    @Override
    public void initialize(ConfigurableApplicationContext applicationContext) {
        log.info("容器启动前完执行...");
    }

    @Override
    public int getOrder() {
        return DEFAULT_ORDER;
    }
}
